package ro.unibuc.nautilus.service;

import java.util.List;

import ro.unibuc.nautilus.dao.GenericDAO;
import ro.unibuc.nautilus.domain.Route;

public class RoutesServiceImpl implements RoutesService {

	private GenericDAO<Route, Long> routesDAO;
	
	public Route findRoute(Long id) {
		return routesDAO.find(id);
	}

	public List<Route> findAll() { 
		return routesDAO.findAll();
	}

	public void create(Route route) {
		routesDAO.create(route);
	}

	public void setRoutesDAO(GenericDAO<Route, Long> routesDAO) {
		this.routesDAO = routesDAO;
	}
}
